function createTime(ctimeMs){
    var date1 = new Date(ctimeMs);
    var year = date1.getFullYear();
    var month = date1.getMonth()+1;
    var day = date1.getDate();
    var hour = date1.getHours();
    var minute = date1.getMinutes();
    var second = date1.getSeconds();

    return year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;
}
const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"/1.txt");
var fileObj = fs.statSync(filePath);
//console.log(fileObj);
var ctimeMs = fileObj.ctimeMs;
console.log(createTime(ctimeMs));
// console.log(date1.getFullYear());